package com.qaml.mes.device.enums;

import com.earth.except.error.ExceptionEnums;

public enum BizErrorEnums implements ExceptionEnums {

    UNKNOWN_TYPE(40000, "未知的类型"),
    NOT_ALREADY_EXISTS_ID(40002, "不存在的假期申请"),
    NOT_DATA(40003, "数据不存在"),
    HAS_DATA(4614, "数据已存在"),


    EQP_CODE_ALREADY_EXISTS(50100, "设备编号已存在"),
    CHECK_ITEM_ALREADY_EXISTS(50001, "此检保项目已存在"),
    CHECK_ITEM_ALREADY_NULL(50011, "检保项目必填"),
    CHECK_UPKEEP_USER_NOT_NULL(50002, "检保人员和复核人员不为空"),

    HOLIDAY_APPLY_ERROR(50003, "该类型在该时间段已经存在休假申请，请重新选择时间范围"),
    NO_AUTH_OPERATION(50004, "无权限操作"),

    RECHECK_CHECK_CHECK_UPKEEP_USER_DIS_AFFINITY(50005, "复核人员不能和检保人员相同"),


    ;

    private Integer code;

    private String message;


    BizErrorEnums(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
